package com.example.testproj.vibrator;

import android.content.Context;
import android.os.Vibrator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.testproj.R;
import com.example.testproj.utils.ThreadUtil;

public class VibratorTestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vibrator_test);
    }

    public void onclick(View view) {
        ThreadUtil.getThreadUtil().submit(new Runnable() {
            @Override
            public void run() {
                for (int i=0;i<100;i++){
                    VibratorUtils.getInstance().vibrator(2,8);
                }

            }
        });

    }
}
